package com;

import java.util.List;

import model.Comment;
import model.Gallery;
import model.Order;
import model.Product;
import model.UserDetails;

public class ProductManager {

	private ProductDao productDao;

	public List<Product> getDecoys() {
		return productDao.getDecoys();
	}
	
	public List<Product> getRents() {
		return productDao.getRents();
	}

	public List<Product> getCamouflages() {
		return productDao.getCamouflages();
	}

	public List<Comment> getComments(String param) {
		return productDao.getComments(param);
	}

	public void save(Order order) {
		this.productDao.save(order);
	}

	public void save(Comment comment) {
		this.productDao.save(comment);
	}

	public void setProductDao(ProductDao dao) {
		this.productDao = dao;
	}

	public List<Product> search(String param) {
		return this.productDao.search(param);
	}

	public List<Gallery> getGallery(String param) {
		return this.productDao.getGallery(param);
	}

	public Product getProductById(String param) {
		return this.productDao.getProductById(param);
	}

	public void registerNewUser(UserDetails user) {
		this.productDao.registerNewUser(user);
	}

	public String getUserCity(String username) {
		return this.productDao.getUserCity(username);
	}

	public String getUserMail(String username) {
		return this.productDao.getUserMail(username);
	}

	public int confirmUser(String username, String confirmationCode) {
		return this.productDao.confirmUser(username, confirmationCode);
	}
	
	public boolean confirmed(String username){
		return this.productDao.confirmed(username);
	}
}
